package com.example.product.dto;

import lombok.Data;

@Data
public class LoginResponse {
    private Long id;
    private String username;
    private String userType;
    private String nickname;
    private String avatar;
    private String token;
    private Long expiresIn; // Token过期时间（秒）
    
    public LoginResponse(Long id, String username, String userType, String nickname, String avatar, String token, Long expiresIn) {
        this.id = id;
        this.username = username;
        this.userType = userType;
        this.nickname = nickname;
        this.avatar = avatar;
        this.token = token;
        this.expiresIn = expiresIn;
    }
}
